<script>
import Banner from "@/components/banner.vue";

export default {
  name: "Center",
  components: {Banner},
  data() {
    return {}
  },
  methods: {}
}
</script>

<template>
  <div>
    <banner isHome="true"></banner>
    <div class="site-content animate">
      <div class="user-manage">
        <h4>我的账户</h4>
        <div class="links">
          <RouterLink to="/userInfo">基本信息</RouterLink>
        </div>
        <h4>文章管理</h4>
        <div class="links">
          <RouterLink to="/article">文章列表</RouterLink>
        </div>
<!--        <div class="links">-->
<!--          <RouterLink to="/creation">开始创作</RouterLink>-->
<!--        </div>-->
        <h4>交易管理</h4>
        <div class="links">
          <RouterLink to="/order">我的订单</RouterLink>
        </div>
      </div>
      <div class="article">
        <!-- 三级路由的挂载点 -->
        <RouterView />
      </div>
    </div>
  </div>
</template>

<style scoped lang="css">
.site-content {
  display: flex;
  padding-top: 20px;
}
.user-manage {
  background-color: #fff;
  width: 140px;
}
.user-manage h4 {
  font-size: 18px;
  font-weight: 400;
  padding: 20px 12px 5px;
  border-top: 1px solid #f6f6f6;
}
.user-manage .links {
  padding: 0 12px 10px;
}
.user-manage a {
  display: block;
  line-height: 1;
  padding: 15px 0;
  font-size: 14px;
  color: #666;
  position: relative;
}

.user-manage a:hover {
  color: #27ba9b;
}
.user-manage a:active {
  color: #27ba9b;
}
.user-manage a:before {
  content: '';
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: 19px;
  left: -16px;
  background-color: $xtxColor;
}

.site-content .article {
  width: 820px;
  height: 100vh;
  padding-left: 20px;
  //margin-bottom: 50px;
  background-color: #fff;
}
</style>
